package cn.dnui_wnx725.dnuifood_16110100725.model;

import java.util.List;

import cn.dnui_wnx725.dnuifood_16110100725.bean.ShopBean;
import cn.dnui_wnx725.dnuifood_16110100725.iface.ShopIface;
import cn.dnui_wnx725.dnuifood_16110100725.listener.ListListener;
import cn.dnui_wnx725.dnuifood_16110100725.service.Service;
import retrofit2.Call;
import retrofit2.Retrofit;



public class ShopModel extends RetrofitBaseModel implements ShopIface<ShopBean> {
    Retrofit retrofit;
    Service service;

    public ShopModel(){
        retrofit = getRetrofit();
        service = getService();
    }

    @Override
    public void getShopMessage(final ListListener<ShopBean> listListener) {
        Call<List<ShopBean>> call = service.getShop();
        callenqueueList(call,listListener);
    }
}